from zvt.domain import *

df = Stock.query_data(provider="em", index='code')
all_stoke_code = df['code'].tolist()

Stock1dHfqKdata.record_data(codes=all_stoke_code, provider='em',sleeping_time=5)
# print(all_stoke_code)
# is_continue = False
# new_list = []
# for stock in all_stoke_code:
#     print(stock)
#     if stock == '688387':
#         is_continue = True
#     if is_continue:
#         new_list.append(stock)
#         # Stock1dHfqKdata.record_data(code=all_stoke_code, provider='em')
# print(new_list)
# Stock1dHfqKdata.record_data(codes=new_list, provider='em')
